// 将token保存到本地
// 保存
export const setItem = (key, value) => {
  localStorage.setItem(key, JSON.stringify(value))
}
// 获取
export const getItem = key => {
  return JSON.parse(localStorage.getItem(key))
}
// 清除
export const removeItem = key => {
  localStorage.removeItem(key)
}
